package SecondSaturday;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Chul {
	String id;
	Date nal,CheckIn,CheckOut;
	
	public Chul(String id, Date cin, Date cout, Date n){
		this.id = id;
		this.CheckIn = cin;
		this.CheckOut = cout;
		this.nal = n;
	}
	
	@Override
	public String toString(){
		String temp=null;
		
		SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd hh:mm"); //HH로 하면 24시간 hh로 하면 12시간.
		
		temp = String.format("%10s %20s", id, sd.format(nal));
				
		return temp;
	}

}
